<template>
  <tbody>
    <tr>
      <td>{{ time }}</td>
      <td>{{ doctor }}</td>
      <td>{{ pathology }}</td>
      <td>{{ state }}</td>
      <td @click="renderData">{{ details }}</td>
    </tr>
  </tbody>
</template>

<script>
export default {
  props: ['time', 'doctor', 'pathology', 'state', 'details'],
  methods: {
    renderData() {
      alert(`  
      就诊日期:${this.time}
      医生姓名:${this.doctor}
      诊断结果:${this.pathology}
      处方信息:${this.state}
             `)
    },
  },
}
</script>

<style scoped lang="less"></style>
